
	<!-- Mainbar head starts -->
	<div class="main-head">
		<div class="container">
			<div class="row">
							<div id="logo">
							</div>
							
							<div >
					<!-- Head user -->
					<?php if(Yii::app()->user->isGuest){ ?>
					<div class="head-user dropdown pull-right">
						<a href="#" data-toggle="dropdown" id="profile">
							Portal
							<i class="fa fa-caret-down"></i> 
						</a>
						<!-- Dropdown -->
						<ul class="dropdown-menu" aria-labelledby="profile">
							<li><a href="<?php echo Yii::app()->createUrl('home'); ?>">home</a></li>
							<li><a href="<?php echo Yii::app()->createUrl('user/login'); ?>">Login</a></li>
							<li><a href="<?php echo Yii::app()->createUrl('user/registration'); ?>">Sign Up</a></li>
						</ul>
					</div>
					<?php }else{ ?>
					<div class="head-user dropdown pull-right">
						<a href="#" data-toggle="dropdown" id="profile">
							<?php echo Yii::app()->user->name; ?>
							<i class="fa fa-caret-down"></i> 
						</a>
						<!-- Dropdown -->
						<ul class="dropdown-menu" aria-labelledby="profile">
							<li><a href="<?php echo Yii::app()->createUrl('user/profile'); ?>">Profile</a></li>
							<li><a href="<?php echo Yii::app()->createUrl('user/logout'); ?>">Sign Out</a></li>
						</ul>
					</div>
					<?php } ?>
					
					<div class="clearfix"></div>
				</div>
				
			</div>	
		</div>
		
	</div>
	
	<!-- Mainbar head ends -->
	
	
<!-- Mainbar ends -->